<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<include file="__VIEW__/Common/header" />
		<script type="text/javascript" src="__STATIC__/index/js/cart.js"></script>
		<!--头部结束-->
	<!--购物车页-->
	<form action="{|U:'Order/add'}" method="post">
	<if value="$cartData['goods']">
	<div id="cart">
		<img src="__STATIC__/index/img/cart.jpg" alt="" />
		<div class="cart_count">
			<div class="shopping"><a href="index.html">继续购物</a></div>
			<div class="count">
				<span>￥<strong>{$cartData.total|number_format:2}</strong></span>
				<p>宝贝总价：</p>
			</div>
			<div class="balance"><img src="__STATIC__/index/img/account.jpg" alt="" /></div>
		</div>
		<div class="cart_tit">
			<ul>
				<li style="margin-left: 10px;cursor: pointer;" class="one"><input type="checkbox" checked="" id="alls" class="all" style="margin-right: 10px;"/><label for="alls">全选</label></li>
				<li class="one">店铺宝贝</li>
				<li class="two">单价</li>
				<li class="two">哇塞币</li>
				<li class="two">数量</li>
				<li class="two">小计</li>
				<li class="two">操作</li>
			</ul>
		</div>
		<!--循环的内容开始-->
		<foreach from="$cartData['goods']" value="$v" key="$k">
			<div class="wares">
				<input type="checkbox" name="shop[{$k}]" checked="" value="{$k}" class="shop"/>
				<div class="buyGoods"><a href="{|U:'Goods/index',array('gid'=>$v['id'])}" target="_blank"><img src="__ROOT__/{$v.pic}" alt="" width="69" height="69" /></a></div>
				<div class="message">
					<a href="{|U:'Goods/index',array('gid'=>$v['id'])}" target="_blank">{$v.name}</a>
					<p>颜色:{$v.yanse} 尺码:{$v.chima}</p>
				</div>
				<span class="unitPrice">￥<strong>{$v.price}</strong></span>
				<span class="unitGold">0</span>
				<span class="unitNum">
					<!--<img src="__STATIC__/index/img/cart_reduction.jpg" alt="" />-->
					<input type="number" name="num[{$k}]" value="{$v.num}" min="1" max="{$v.inventory}" />
					<!--<img src="__STATIC__/index/img/cart_plus.jpg" alt="" />-->
				</span>
				<span class="countPrice">￥<strong>{$v.total|number_format:2}</strong></span>
				<span class="operate">
					<a href="javascript:;">加入最爱</a>
					<br />
					&nbsp;&nbsp;&nbsp;<a href="javascript:;" onclick="if(confirm('确定要删除该商品吗?')) location.href='{|U:'delOne',array('id'=>$k)}'">删除</a>
				</span>
			</div>	
		</foreach>
		
		<!--循环的内容结束-->
		
		<div class="entireCount">
			<input type="checkbox" checked class="all" id="all" value="全选"/>
			<label for="all"><span>全选</span></label>
			<span class="other" style="cursor: pointer;">反选</span>
			<a href="javascript:;" onclick="if(confirm('确定要删除所有吗?')) location.href="{|U:'del',array()}";"> 批量删除  </a>
			<input type="submit" class="enter" value="">
			<div class="count">
				<span>￥ <strong>{$cartData.total|number_format:2}</strong></span>
				<p>宝贝总价：</p>
			</div>
		</div>
	</div>
	<else/>
		<h2 style="padding: 150px;text-align: center;"><a href="{|U:'index/index/index'}" style="font-size: 30px;">购物车空空如也，赶快去购物吧！</a></h2>
	</if>
	</form>
	<!--购物车页-->
	<div class="clear"></div>
		<!--底部开始-->
		<include file="__VIEW__/Common/footer" />
